package service.impl;

import dao.OrderDao;
import dao.impl.OrderDaoImpl;
import entity.Order;
import service.OrderService;

public class OrderServiceImpl implements OrderService {
	
	private OrderDao orderDao = new OrderDaoImpl();

	@Override
	public int add(Order order) {
		return orderDao.add(order);
	}

	@Override
	public Order findByOrderNO(String orderNO) {
		return orderDao.findByOrderNO(orderNO);
	}

	@Override
	public int updateStatus(Order order) {
		return orderDao.updateStatus(order);
	}

}
